package lener.thread;

public class TestThread extends Thread{
	private static int size = 0;
	private int s;
		 public TestThread(){
			 size ++;
			  s = size;
		 }
		
	 @Override
		public  void run(){
			
			for(int i=0;i<5;i++){
				
				System.out.println(i+"--->"+s);
			}
		 }
	 public static void  main(String[] args) throws InterruptedException{
		 byte b = 1;
		 byte b1 = 7;
		 b = (byte) (b << b1);
		 System.out.println(b);
//		 TestThread t1 = new TestThread();
//		 TestThread t2 = new TestThread();
//		 TestThread t3 = new TestThread();
//		 TestThread t4 = new TestThread();
//		 t1.start();
//		 System.out.println("---------------->");
//		 t2.start();
//		 System.out.println("2->");
//		 t3.start();
//		 System.out.println("3->");
//		 t4.start();
//		 System.out.println("4->");
//		 //Thread.sleep(800);
//		 t1.yield();
//		 //t4.join();
//		 System.out.println("join->");
//		 Thread.sleep(3000);
		
	 }
}
